import Taro, { Component, Config } from '@tarojs/taro'
import { View } from '@tarojs/components'
import './index.less'

export default class Btn extends Component{

    componentWillMount () { }

    componentDidMount () { }
  
    componentWillUnmount () { }
  
    componentDidShow () { }
  
    componentDidHide () { }
    

    config: Config = {

    }

    render(){

        let type = this.props &&  this.props.type;
        
        return (

            <View className={`${type || 'def'} btn`} onClick={this.props.onClick}>
                {this.props.children}        
            </View>
            
        )
        
    }
    
    
}